import request from '@/utils/request'

// 查询生态服务列表
export function listMenServices(query) {
  return request({
    url: '/men/menServices/list',
    method: 'get',
    params: query
  })
}

// 查询生态服务详细
export function getMenServices(id) {
  return request({
    url: '/men/menServices/' + id,
    method: 'get'
  })
}

// 新增生态服务
export function addMenServices(data) {
  return request({
    url: '/men/menServices',
    method: 'post',
    data: data
  })
}

// 修改生态服务
export function updateMenServices(data) {
  return request({
    url: '/men/menServices',
    method: 'put',
    data: data
  })
}

// 删除生态服务
export function delMenServices(id) {
  return request({
    url: '/men/menServices/' + id,
    method: 'delete'
  })
}

// 导出生态服务
export function exportMenServices(query) {
  return request({
    url: '/men/menServices/export',
    method: 'get',
    params: query
  })
}